const http = uni.$u.http
// 商品详情
export const getIssue = (data, config = { }) => 
	http.get('/index/goodsDetail/issue', Object.assign({ }, config, {
		params: data,
	},)
)

// 大家都在看
export const getSeeBoth = (data, config = { }) => 
	http.get('/index/goodsDetail/seeBoth', Object.assign({ }, config, {
		params: data,
	},)
)

// 商品规格
export const getGoodsSpecification = (data, config = { }) => 
	http.get('/index/goodsDetail/specifiction', Object.assign({ }, config, {
		params: data,
	},)
)

// 暂时商品规格
export const getGoodsProduct = (data, config = { }) => 
	http.get('/index/goodsDetail/temporarilySpecifiction', Object.assign({ }, config, {
		params: data,
	},)
)

// 秒杀商品规格
export const getSeckillProduct = (data, config = { }) => 
	http.get('/index/goodsDetail/seckillSpecifiction', Object.assign({ }, config, {
		params: data,
	},)
)

// 查询品牌商
export const getBrandById = (data, config = { }) => 
	http.get('index/brand/brandById', Object.assign({ }, config, {
		params: data,
	},)
)

// 新增浏览记录
export const insFootprint = (data, config = { }) => 
	http.get('user/footprint/footprintInsert', Object.assign({ }, config, {
		params: data,
	},)
)

// 查询商品评论
export const getComment = (data, config = { }) => 
	http.get('index/comment/selComment', Object.assign({ }, config, {
		params: data,
	},)
)

// 查询商品库存
export const getGoodsStock = (data, config = { }) => 
	http.get('index/goodsDetail/goodsStock', Object.assign({ }, config, {
		params: data,
	},)
)